package cn.tedu.spring.eg1;

import cn.tedu.spring.example.TestUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: Miyako
 * @Date: 2024-08-02-14:16
 * @Description:
 */
public class ProductTest {
    public static void main(String[] args) {
        Class c = TestUser.class;
        System.out.println(c);
       AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.eg1");


        Product bean = context.getBean(Product.class);
        System.out.println(bean.toString());
    }
}
